package com.cxs.feignclient.client;

import com.cxs.feignclient.config.FeignConfig;
import com.example.pojo.College;
import com.example.pojo.Speciality;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "college-service",configuration = FeignConfig.class)
public interface CollegeClient {
        @GetMapping("/college/selectById/{id}")
        College selectById(@PathVariable Integer id);

        @GetMapping ("/speciality/selectById/{id}")
        Speciality selectSpecialityById(@PathVariable Integer id);
}
